<?php
/**
 * Controller to deal with site errors

 * @author mpike
 */
class ErrorHandler extends Controller{

	public static function pageNotFoundAction(array $request){
		header("HTTP/1.0 404 Not Found");
		return self::loadView("/site/errors/404.phtml");
	}

	public static function genericErrorAction(array $request){
		return self::loadView("/site/errors/generic-error.phtml");
	}
}